package com.example.security.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zhanpengguo
 * @date 2019-10-08 14:59
 */
@Controller
public class ViewController {

    @GetMapping("/")
    public String toLogin() {
        return "login.html";
    }

    @GetMapping("/index.html")
    public String index() {
        return "index.html";
    }
}
